{
cairo_t *cr;
cairo_glyph_t glyph;
+ cairo_font_options_t *options;
g_assert (surface != NULL);
g_assert (scaled_font != NULL);
cr = cairo_create (surface);
+ options = cairo_font_options_create ();
+ cairo_font_options_set_hint_metrics (options, key->hint_metrics ? CAIRO_HINT_METRICS_ON : CAIRO_HINT_METRICS_OFF);
+ cairo_font_options_set_antialias (options, key->antialias ? CAIRO_ANTIALIAS_GRAY : CAIRO_ANTIALIAS_NONE);
+ cairo_font_options_set_hint_style (options, key->hint_style);
+ cairo_set_font_options (cr, options);
+ cairo_font_options_destroy (options);
+
cairo_set_scaled_font (cr, scaled_font);
cairo_set_source_rgba (cr, 1, 1, 1, 1);
PangoGlyph glyph;
guint xshift : 2;
guint yshift : 2;
- guint scale : 28; /* times 1024 */
+ guint hint_metrics : 1;
+ guint antialias : 1;
+ guint hint_style : 3;
+ guint scale : 23; /* times 1024 */
} GskNglGlyphKey;
typedef struct _GskNglGlyphValue